<?php
declare (strict_types = 1);

namespace app\backend_api\model;

use think\Model;
use think\model\concern\SoftDelete;

/**
 * @mixin \think\Model
 */
class BaseModel extends Model
{
    use SoftDelete;
    protected string $deleteTime = 'deleted_at';
    protected $autoWriteTimestamp = 'timestamp';
    protected $hidden = ['deleted_at'];

    // 定义时间戳字段名
    protected $createTime = 'created_at';
    protected $updateTime = 'updated_at';
}
